package org.lex.io.filesystem.tools;

import java.io.File;

import org.lex.utils.SystemProperties;


public class CleanTempDir implements Runnable {
	public static void main(String[] args) {
		new CleanTempDir().run();
	}

	public void run() {
		File tempDir = new File(SystemProperties.tempDir());
		ln("Get TEMP dir: " + tempDir.getAbsolutePath());
		ln("Start to delete files in: " + tempDir.getAbsolutePath());
		new DeleteDirectory(tempDir).run();
		ln("Complete!");
	}

	private void ln(String text) {
		System.out.println(text);
	}
}
